package com.qihetimes.earthangel.service.impl;

import com.qihetimes.earthangel.config.QiniuAuthConfig;
import com.qiniu.util.Auth;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 上传服务
 *
 * @author ：f4cklangzi@gmail.com
 * @date ：Created At 2021/12/11
 */
@Slf4j
@Service
public class UploadService {
    
    @Resource
    private Auth auth;
    
    public String uploadToken() {
        return auth.uploadToken(QiniuAuthConfig.BUCKET);
    }
}
